Skip to content

Conversation

poscat0x04
Copy link

@poscat0x04 poscat0x04 commented Oct 1, 2025

This is needed for adding sendmsg()/recvmsg() support to more specialized sockets (UdpSocket etc.).
See also #76915

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels Oct 1, 2025
Motivation: Existing methods send_msg and recv_msg do not expose
the full capabilities of the sendmsg() and recvmsg() syscalls.
Changes: Add these to methods that expose the flag argument.
Rewrite send_msg and recv_msg to use the _with_flags_version
@poscat0x04 poscat0x04 changed the title Send recv msg Adds methods send_msg_with_flags and recv_msg_with_flags to Socket Oct 1, 2025
@poscat0x04 poscat0x04 marked this pull request as ready for review October 1, 2025 14:20
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 1, 2025
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Oct 1, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 1, 2025

r? @joboet

rustbot has assigned @joboet.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@joboet
Copy link
Member

joboet commented Oct 1, 2025

I don't have a strong objection to this, but I'd prefer if these were added together with code that actually used them. Otherwise there's a high risk that these functions just remain unnecessary clutter. Did you have a follow-up PR in mind?

@poscat0x04
Copy link
Author

Yes, I'm writing them right now. Shall I close this?

@joboet
Copy link
Member

joboet commented Oct 2, 2025

I'd say so. Keeping this change as a separate commit in that PR wouldn't hurt though 😄.

@joboet joboet closed this Oct 2, 2025
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants